package top.hesisi.springboot3.entity;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;

import java.io.Serial;
import java.io.Serializable;
import java.util.Date;

@Data
public class EntityInfo implements Serializable {
    @Serial
    private static final long serialVersionUID = 1L;
    private Integer ival;
    private String sval;

    @JsonFormat(pattern = "yyyy/MM/dd", timezone = "GMT+8")
    private Date dateOne;
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date dateTwo;
}
